package cc.mrbird.febs.customer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author Macw
 * @since 2020-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单表主键
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 客户id
     */
    private String openId;

    /**
     * 订单总费用
     */
    private BigDecimal totalFee;

    /**
     * 商品描述	
     */
    private String body;

    /**
     * 商品详情
     */
    private String detail;

    /**
     * 商户订单号	
     */
    private String outTradeNo;

    /**
     * 终端IP	
     */
    private String 	spbillCreateIp;

    /**
     * 交易时间
     */
    private LocalDateTime timeStart;

    /**
     * 活动id（商品id）
     */
    private String activityId;

    /**
     * 1支付成功，0失败
     */
    private Integer isSuccess;

    private transient  String nickName;

    private transient String trueName;



}
